package com.kady.service;

import com.kady.entity.FoodType;

import java.sql.SQLException;
import java.util.List;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/3/24
 * \* Time: 21:08
 * \* 千峰JAVA2101班
 * \* Description: 菜系业务层IMPL
 * \
 */

public interface FoodTypeService {
    List<FoodType> getFoodTypeList(String keyword) throws SQLException;

    FoodType findOne(long typeId) throws SQLException;

    void addFoodType(FoodType foodType) throws SQLException;

    void updateFoodType(FoodType foodType) throws SQLException;

    void removeFoodType(long typeId) throws SQLException;

    FoodType getFoodTypeByName(String name) throws SQLException;
}
